<?php

Class YTDJClass {
	
	/**
	 * getInstance
	 *
	 * @return mixed
	 */
	static function getInstance($classname) {
		static $instance;
		if (!$instance[$classname] instanceof $classname) {
			$instance[$classname] = new $classname;
		}
		return $instance[$classname];
	}

}

?>